package de.tudarmstadt.ukp.wikisniffer.userstudy.gui.questions.util;

import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;

import de.tudarmstadt.ukp.wikisniffer.userstudy.Client;

public class StopCounterListener implements FocusListener {

	@Override
	public void focusGained(FocusEvent arg0) {
		stopCounter(arg0.getComponent().getName());

	}

	@Override
	public void focusLost(FocusEvent arg0) {
		// empty
	}
	
	private void stopCounter(String event){
		Client.client.resultStore.notifyPossibleStop(event);
	}

}
